import 'package:flutter/material.dart';

class ChapterState with ChangeNotifier {

  ChapterState({int categoryId = 0}) : _categoryId = categoryId;

  int? _categoryId;


  int? get categoryId => _categoryId;

  void update({
    String? columnId,
    int? topLevel,
    int? categoryId,
  }) {
    _categoryId = categoryId;
    notifyListeners(); // 通知依赖它的组件更新
  }
}
